<?php
$plugin->load_plugin_lang();


$tpl = new Template_plugin('course/plugin/video_viewer/templates/index.tpl');

$videoUrl = $Sql->query("SELECT videoUrl FROM phpboost_plugin_uploadvideo WHERE id=".$module->get_module_id_created_module(),__LINE__,__FILE__);
$langFr = $Sql->query("SELECT langFr FROM phpboost_plugin_uploadvideo WHERE id=".$module->get_module_id_created_module(),__LINE__,__FILE__);
$langEn = $Sql->query("SELECT langEn FROM phpboost_plugin_uploadvideo WHERE id=".$module->get_module_id_created_module(),__LINE__,__FILE__);
$langNl = $Sql->query("SELECT langNl FROM phpboost_plugin_uploadvideo WHERE id=".$module->get_module_id_created_module(),__LINE__,__FILE__);

if($langFr == 1){$langFr = TRUE;}else{$langFr = FALSE;}
if($langEn == 1){$langEn = TRUE;}else{$langEn = FALSE;}
if($langNl == 1){$langNl = TRUE;}else{$langNl = FALSE;}


$tpl->assign_vars(array(
	'urlVideo' => $videoUrl,
	'LANGFR' => $langFr,
	'LANGEN' => $langEn,
	'LANGNL' => $langNl,
	'YOUR_VIDEO' => $LANG['your_video'],
	'LANGUAGE_CHOICE' => $LANG['language_choice'],
	'NONE' => $LANG['none'],
	'FRENCH' => $LANG['french'],
	'ENGLISH' => $LANG['english'],
	'DUTCH' => $LANG['dutch'],
	
));

$tpl->parse();
?>